<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	template="/layout/template.xhtml">
	<ui:define name="body">
		<style>
.value {
	font-size: 14px;
	vertical-align: top;
}

.label {
	font-weight: bold;
	font-size: 14px;
	vertical-align: top;
}
</style>
		<h1>#{projeto.projeto.nome}</h1>
		<h:panelGrid columns="2" columnClasses="top,top,top,top">
			<h:panelGrid columns="2" columnClasses="label,value">
				<h:outputText value="Criado em: " />
				<h:outputText value="#{projeto.projeto.datacriacao}" />
				<h:outputText value="Status do Projeto: " />
				<h:outputText value="#{projeto.projeto.statusprojeto.nome}" />
			</h:panelGrid>
			<h:panelGrid columns="2" columnClasses="label,value">
				<h:outputText value="Gerente de Projetos: " />
				<h:outputText value="#{projeto.projeto.usuario.nome}" />
				<h:outputText value="Encerrado em: "
					rendered="#{projeto.projeto.statusprojeto.id eq 5}" />
				<h:outputText value="#{projeto.projeto.fim}"
					rendered="#{projeto.projeto.statusprojeto.id eq 5}" />
			</h:panelGrid>
		</h:panelGrid>

		<rich:simpleTogglePanel switchType="client" ajaxSingle="true" opened="true">
			<f:facet name="header">Termo de Abertura do Projeto</f:facet>
			<ui:include src="/view/projetoinclude/aberturaprojeto.xhtml" />
		</rich:simpleTogglePanel>

		<rich:tabPanel switchType="client">
			<rich:tab id="vg" label="Visão Geral">
				<ui:include src="/view/projetoinclude/visaogeral.xhtml" />
			</rich:tab>
			<rich:tab id="pg" label="Plano Global">
				<ui:include src="/view/projetoinclude/planoglobal.xhtml" />
			</rich:tab>
			<rich:tab id="mp" label="Matriz de Prioridades">
				<ui:include src="/view/projetoinclude/matriz.xhtml" />
			</rich:tab>
			<rich:tab id="sm" label="Solicitacoes de Mudanca">
				<ui:include src="/view/projetoinclude/mudancas.xhtml" />
			</rich:tab>
			<rich:tab id="la" label="Lições Aprendidas">
				<ui:include src="/view/projetoinclude/licoes.xhtml" />
			</rich:tab>
		</rich:tabPanel>
	</ui:define>
</ui:composition>